package io.netty.client.config;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Setter
@Getter
@Configuration
@ConfigurationProperties(prefix = "config.netty.client")
public class NettyClientConfig {

    private String connServerIp;

    private Integer connServerPort;

    private KeepAlive keepAlive;

    @Data
    public static class KeepAlive {
        private Integer writeIdleMs;
        private String pingTestContent;
        private Integer pingRetry;

    }
}
